<template>
  <div style="padding-top: 10px" title="阅读量">
    <div class="icon" :style="bgcolor">
      <i :class="icon"/>
    </div>
    <div class="num">
      {{this.name}} {{this.number}} {{this.unit}}
    </div>
  </div>
</template>

<script>

export default {
  props: {
    bgcolor: {
      type: String,
      default: ''
    },
    icon: {
      type: String,
      default: 'el-icon-edit'
    },
    name: {
      type: String,
      default: ''
    },
    unit: {
      type: String,
      default: '个'
    },
    number: {
      type: String,
      default: '0'
    }
  },
  data() {
    return {
    }
  },
  methods: {

  }
}
</script>

<style scoped>
.icon {
  display:block;
  width: 60px;
  height:60px;
  margin-right:3px;
  position: relative;
  float: left;
  text-align: center;
  padding-top: 13px;
  font-size: 36px;
  border-radius: 30px;
}
.num {
  display:block;
  float:left;
  height:60px;
  font-size:30px;
  padding-top: 12px;
  width:calc(100% - 80px);
  text-align: center;
  user-select: none;
}
</style>
